﻿
@{
    ViewBag.Title = "Gouwuche";
    Layout = "~/Views/_LayoutPage1.cshtml";
}



<header id="fh5co-header" class="fh5co-cover fh5co-cover-sm" role="banner" style="background-image: url('../../shouyeyangshi/images/gouwuche.jpeg');">
    <div class="overlay"></div>
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-md-offset-2 text-center">
                <div class="display-t">
                    <div class="display-tc animate-box" data-animate-effect="fadeIn">
                        <h1 style="color:red;">购物车</h1>
                    </div>
                </div>
            </div>
        </div>
    </div>
</header>



<div id="fh5co-blog" class="fh5co-bg-section" style="background: #f2f2f2; padding-top: 75px;">
    <div class="container">
        <h2 style="font-weight:800">加入订单</h2>
        <br />
        <div class="row">
            <form>
                <div class="col-md-4">
                    <img src="~/Shouyeyangshi/images/@ViewBag.prc" class="img-responsive" alt="Product Image" />
                </div>
                <div class="col-md-8">
                    <h3>产品名称:<span style="color:red;font-weight:600;">@ViewBag.travelRoutesName</span></h3>
                    <p>产品描述:<span>@ViewBag.Miaoshu</span></p>
                    <h4>价格:<span style="color:red;">$@ViewBag.Price 元</span></h4>
                    <div class="form-group">
                        <label for="quantity">数量：</label>
                        <input type="number" class="form-control" id="quantity" name="Days" value="1">
                    </div>
                    <a href="/Home/Gou/@ViewBag.RouteId" type="submit" class="btn btn-success">添加到我的订单</a>

                </div>
            </form>
        </div>
        <br />
        <br />
        <div class="row">
            <div class="col-md-12">
                <h3 style="font-weight:800">产品详情</h3>
                <p>详细介绍产品的特点和优点。</p>
                @if (Session["username"] == null)
                {
                    <p>
                        用户：
                        <span>

                        </span>
                    </p>
                }
                else
                {
                    foreach (var item in ViewData["Comments"] as List<WebApplication5.Models.Comments>)
                    {
                        <p>
                            用户：@item.Users.Username
                            <span>
                               @item.CommentText
                            </span>
                        </p>
                    }
                }




            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <h3>评论</h3>
                <form action="/Home/Pinglun" method="post">
                    <div class="form-group">
                        <label for="comment">评论：</label>
                        <textarea class="form-control" name="CommentText" rows="5" id="comment"></textarea>
                    </div>
                    <button type="submit" class="btn btn-primary">提交评论</button>
                </form>
            </div>
        </div>
    </div>
</div>


